package com.yeyks.mattress.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 共享床垫订单表
 * </p>
 *
 * @author yun
 * @since 2019-07-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OrderInfoMattress对象", description="共享床垫订单表")
public class OrderInfoMattress implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "对应的操作用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "酒店ID")
    @TableField("hotel_id")
    private Integer hotelId;

    @ApiModelProperty(value = "套餐ID")
    @TableField("package_id")
    private Integer packageId;

    @ApiModelProperty(value = "设备编号")
    @TableField("imei_id")
    private String imeiId;

    @ApiModelProperty(value = "酒店名称")
    @TableField("hotel_name")
    private String hotelName;

    @ApiModelProperty(value = "酒店联系电话")
    @TableField("hotel_phone")
    private String hotelPhone;

    @ApiModelProperty(value = "酒店地址")
    @TableField("hotel_address")
    private String hotelAddress;

    @ApiModelProperty(value = "下单用户手机")
    @TableField("user_phone")
    private String userPhone;

    @ApiModelProperty(value = "套餐名称")
    @TableField("package_name")
    private String packageName;

    @ApiModelProperty(value = "套餐内容")
    @TableField("package_content")
    private String packageContent;

    @ApiModelProperty(value = "套餐时长")
    @TableField("package_time_long")
    private Integer packageTimeLong;

    @ApiModelProperty(value = "订单最终付款")
    @TableField("snapshot_total_fee")
    private Integer snapshotTotalFee;

    @ApiModelProperty(value = "订单最终退款金额")
    @TableField("snapshot_refund_fee")
    private Integer snapshotRefundFee;

    @ApiModelProperty(value = "状态，1待支付,2启动成功,3启动失败,4支付失败,5已退款")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "支付方式，0微信，1支付宝，4小程序，5公众号，6wallet")
    @TableField("payment_method")
    private Integer paymentMethod;

    @ApiModelProperty(value = "酒店床垫分成(分)")
    @TableField("hotel_fee_value")
    private Integer hotelFeeValue;

    @ApiModelProperty(value = "酒店分成结算标记 0:未结算  1：已结算")
    @TableField("calculate_flag")
    private Integer calculateFlag;

    @ApiModelProperty(value = "省代理d")
    @TableField("province_agent_id")
    private Integer provinceAgentId;

    @ApiModelProperty(value = "市代id")
    @TableField("city_agent_id")
    private Integer cityAgentId;

    @ApiModelProperty(value = "操作人id(退款操作)")
    @TableField("operator_id")
    private Integer operatorId;

    @ApiModelProperty(value = "订单完成时间")
    @TableField("over_time")
    private Date overTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("modify_time")
    private Date modifyTime;


    public static final String ID = "id";

    public static final String ORDER_NO = "order_no";

    public static final String USER_ID = "user_id";

    public static final String HOTEL_ID = "hotel_id";

    public static final String PACKAGE_ID = "package_id";

    public static final String IMEI_ID = "imei_id";

    public static final String HOTEL_NAME = "hotel_name";

    public static final String HOTEL_PHONE = "hotel_phone";

    public static final String HOTEL_ADDRESS = "hotel_address";

    public static final String USER_PHONE = "user_phone";

    public static final String PACKAGE_NAME = "package_name";

    public static final String PACKAGE_CONTENT = "package_content";

    public static final String PACKAGE_TIME_LONG = "package_time_long";

    public static final String SNAPSHOT_TOTAL_FEE = "snapshot_total_fee";

    public static final String SNAPSHOT_REFUND_FEE = "snapshot_refund_fee";

    public static final String STATUS = "status";

    public static final String PAYMENT_METHOD = "payment_method";

    public static final String HOTEL_FEE_VALUE = "hotel_fee_value";

    public static final String CALCULATE_FLAG = "calculate_flag";

    public static final String PROVINCE_AGENT_ID = "province_agent_id";

    public static final String CITY_AGENT_ID = "city_agent_id";

    public static final String OPERATOR_ID = "operator_id";

    public static final String OVER_TIME = "over_time";

    public static final String CREATE_TIME = "create_time";

    public static final String MODIFY_TIME = "modify_time";

}
